package Com.amit.Exception;

import java.io.IOException;

public class Lab17 {

	void m3() throws IOException
	{
		throw new IOException("device error");
	}
	
	void m2() throws Exception
	{
		m3();
	}
	n
	
	 void m1()
	{
		try
		{
			m2();
		}
		
		catch (Exception e) {
			
			System.out.println("handled");
			
		}
	}
	
	public static void main(String[] args) {
		
		Lab17 l=new Lab17();
		l.m1();
		
		System.out.println("Rest code");
	
	}

}
